package com.jsyso.wxapp.parser.nodes;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 根节点
 * @author janjan, xujian_jason@163.com
 *
 */
public class WXRoot extends AbstractWXNode implements Serializable {
	private static final long serialVersionUID = 1L;
	
	// 当前解析中所有图片连接URL
	private List<String> imageUrls;
	
	public WXRoot() {
		super("root");
		
		nodeType = "root";
		imageUrls = new ArrayList<String>();
	}
	
	public List<String> getImageUrls() {
		return imageUrls;
	}

	public boolean addImageUrl(String imageUrl) {
		if(imageUrl == null || "".equals(imageUrl)) { return false; }
		return imageUrls.add(imageUrl);
	}
	
}
